﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace DatabaseCore
{
    public interface IUserDao
    {
        List<tbl_User> GetAllUser(bool active = true);
        tbl_User GetUserByUserName(string username);
        tbl_User Login(string userName, string password);
        bool UpdatePassword(string username, string password);
        bool UpdatePinCode(int id, string pinCode);

        bool Insert(tbl_User entity);
        bool Update(tbl_User entity);
        bool Delete(int id);
    }
}
